﻿# coding: utf-8

from flask.ext.script import Manager, Shell

from app import create_app

app = create_app()

manager = Manager(app)


@manager.command
def run(port=5000):
    """启动网站"""
    app.run(host="localhost", port=port)


@manager.command
def run_80():
    """启动网站"""
    app.run(host="localhost", port=80)


if __name__ == "__main__":
    print "http://127.0.0.1:5000"
    manager.run()
